//
//  KLPhotoAnimator.h
//  HealthManage
//
//  Created by 陈华 on 2017/4/10.
//  Copyright © 2017年 kinglian. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol AnimatorPresentedDelegate <NSObject>

- (CGRect )startRect:(NSIndexPath *)indexPath;
- (CGRect )endRect:(NSIndexPath *)indexPath;
- (UIImageView *)imageView:(NSIndexPath *)indexPath;

@end

@protocol AnimatorDismissDelegate <NSObject>

- (NSIndexPath *)indexPathForDismissView;
- (UIImageView *)imageViewForDimissView;

@end





@interface KLPhotoAnimator : NSObject <UIViewControllerTransitioningDelegate>

@property(nonatomic,weak) id<AnimatorPresentedDelegate> presentedDelegate;
@property(nonatomic,weak) id<AnimatorDismissDelegate> dismissDelegate;
@property(nonatomic,strong) NSIndexPath *indexPath;

@end
